<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%String contextPath = request.getContextPath(); %>


<body>
	<div id="templatemo_wrapper_h">
		<s:include value="/web/clientpage/header_menu/header_menu.jsp" />
		<div id="templatemo_main_wrapper">
			<div id="templatemo_main">
				<s:include value="/web/clientpage/menu/left_menu.jsp" />

				<div id="content" class="right">
					<h2>Đăng ký tài khoản</h2>
					<div class="content_register">
						<div class="cleaner h40"></div>
						<%-- <s:form action="customer/CustomerAction!login" method="post" validate="true"> --%>
						<s:form id="addCustomer" name="addCustomer" action="register"
							method="post" theme="simple" namespace="/">

							<table>
								<tr style="width: 130px">
									<td>Tên Đăng Nhập:<font color="red">*</font></td>
									<td style="width: 300px"><s:textfield id="cusUser"
											name="customer.cusUser" /></td>
								</tr>
								<tr style="width: 130px">
									<td>Mật Khẩu:<font color="red">*</font></td>
									<td style="width: 300px"><s:password id="cusPass"
											name="customer.cusPass" /></td>
								</tr>
								<tr style="width: 130px">
									<td>Họ Và Tên:<font color="red">*</font></td>
									<td style="width: 300px"><s:textfield id="cusName"
											name="customer.cusName" /></td>
								</tr>

								<tr style="width: 130px">
									<td>Số CMND:<font color="red">*</font></td>
									<td style="width: 300px"><s:textfield id="cardId"
											name="customer.cardId" /></td>
								</tr>
								<tr style="width: 130px">
									<td>Địa chỉ:</td>
									<td style="width: 300px"><s:textfield id="address"
											name="customer.address" /></td>
								</tr>
								<tr style="width: 130px">
									<td>Email:<font color="red">*</font></td>
									<td style="width: 300px"><s:textfield id="email"
											name="customer.email" /></td>
								</tr>
								<tr style="width: 130px">
									<td>Điện thoại:<font color="red">*</font></td>
									<td style="width: 300px"><s:textfield id="phone"
											name="customer.phone" /></td>
								</tr>
								<tr>
									<td>
										<div class="#" id="button-insert-customer">
											<button type="submit">Đăng Ký</button>
										</div>
									</td>
								</tr>
							</table>
						</s:form>
					</div>
				</div>
				<div class="cleaner"></div>

			</div>
		</div>
		<s:include value="/web/clientpage/footer/footer.jsp" />
	</div>
	<!-- END of header wrapper -->
	<script>
$(function () { 
	
	//binhpv
	$('#button-insert-customer').click(function(){
		document.forms["addCustomer"].submit();
	});

});

</script>
</body>
</html>